package com.dearbinge.data.pojo.moments.vo;

import com.dearbinge.utils.Base64Util;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 社交圈评论表
 *
 * @author wes
 * @date 2019/2/25
 */
public class BusinessCircleCommentVO implements Serializable {

    /**
     * 评论ID
     */
    @ApiModelProperty("评论id")
    private Integer commentId;

    /**
     * 商品表ID/生活表id
     */
    @ApiModelProperty(value = "商品表ID/生活表id 必传",required = true)
    private Integer tableId;

    /**
     * 1：生活表，2：商品表
     */
    @ApiModelProperty("1：生活表，2：商品表d 必传")
    private Integer tableType;

    /**
     * 当前评论的用户id
     */
    @ApiModelProperty("当前评论的用户id 必传")
    private Integer contentUser;

    /**
     * 当前评论的用户名字
     */
    @ApiModelProperty("当前评论的用户名字")
    private String contentUserName;

    /**
     * 被回复的用户id
     */
    @ApiModelProperty("被回复的用户id ")
    private Integer replyUser;

    /**
     * 被回复的用户名字
     */
    @ApiModelProperty("被回复的用户名字")
    private String replyUserName;

    /**
     * 评论内容
     */
    @ApiModelProperty("评论内容 必传")
    private String content;

    /**
     * 评论的类型(0:普通评论 1：对人回复)
     */
    @ApiModelProperty("评论的类型(0:普通评论 1：对人回复) 必传")
    private Integer commentType;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;



    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public Integer getTableId() {
        return tableId;
    }

    public void setTableId(Integer tableId) {
        this.tableId = tableId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Integer getCommentType() {
        return commentType;
    }

    public void setCommentType(Integer commentType) {
        this.commentType = commentType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getTableType() {
        return tableType;
    }

    public void setTableType(Integer tableType) {
        this.tableType = tableType;
    }



    public String getContentUserName() {
        return contentUserName;
    }

    public void setContentUserName(String contentUserName) {
        //修改编码
        this.contentUserName = Base64Util.decodeData(String.valueOf(contentUserName));
    }



    public String getReplyUserName() {
        return replyUserName;
    }

    public void setReplyUserName(String replyUserName) {

        //修改编码
        this.replyUserName = Base64Util.decodeData(String.valueOf(replyUserName));


    }

    public Integer getContentUser() {
        return contentUser;
    }

    public void setContentUser(Integer contentUser) {
        this.contentUser = contentUser;
    }

    public Integer getReplyUser() {
        return replyUser;
    }

    public void setReplyUser(Integer replyUser) {
        this.replyUser = replyUser;
    }
}